package net.zjitc.dao;

import net.zjitc.domain.CartItem;
import net.zjitc.domain.User;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * 2 * @Author: 洪瑶
 * 3 * @Date: 2018/11/22 9:07
 * 4
 */
public interface CartItemDao {

    void addCart(CartItem cartItem) throws SQLException;
    List<CartItem> findByuid(int uid) throws Exception;
    CartItem findById(int uid,int pid)throws SQLException;
    void update(CartItem cartItem)throws SQLException;
    void delete(int cartid)throws SQLException;
    void deleteAll(int uid) throws SQLException;
}
